import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  //mode: 'history',
  routes: [
    {
    	path:'/',
    	component: resolve => require(['pages/index/index.vue'], resolve)

    },
    {
    	path:'/login',
    	component: resolve => require(['pages/index/Login.vue'], resolve)
    },{
    	path:'/register',
    	component: resolve => require(['pages/index/register.vue'], resolve)
    },{
    	path:'/buy',
    	component: resolve => require(['pages/index/buy.vue'],resolve)
    },{
    	path:'/info',
    	component:  resolve=> require(['pages/index/info.vue'],resolve)
    },{
      path:'/success',
      component:  resolve=> require(['pages/index/success.vue'],resolve)
    },{
      path:'/404',
      component:  resolve=> require(['pages/index/404.vue'],resolve)
    }
  ]
})
